<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test</title>
</head>
<body>
    <form action="/test/create/" method="POST">
        {% csrf_token %}            <!-- 没有这个是通不过检测的 -->

        <label>Title:</label>
        <input type="text" name="title"><br>

        <label>Body:</label>
        <textarea name="body" rows="3" cols="60"></textarea><br>
        <input type="submit">
    </form>

    {% for post in web_list %}
        <h2>{{ post.title|title }}</h2>
        <p>{{ post.body }}</p>
        <p>{{ post.timestamp }}</p>
    {% endfor%}



<!--
    <h2>{{ post.title|title }}</h2>
    <p>{{ post.body }}</p>
    <p>{{ post.timestamp }}</p>
-->

</body>
</html>